package com.example.demofores.controller;

import com.example.demofores.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sjw
 * @className HomeController
 * @date 2021/5/25 17:59
 * @description: TODO
 */
@RestController
@RequestMapping("/home")
public class HomeController {

    @Autowired
    private HomeService homeService;

    @GetMapping("/hello")
    public String hello(){
        return homeService.hello();
    }
}
